﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Web;
using System.Xml.Serialization;

namespace TrainingManagement.api.Models.BusinessObjects
{
    [DataContract]
    public class Employee
    {
        [DataMember]
        public int EmployeeId { get; set; }

        [DataMember]
        public string FullName
        {
            get { return string.Format("{0} {1}", FirstName, LastName); }
        }

        [DataMember]
        public string FirstName { get; set; }

        [DataMember]
        public string LastName { get; set; }

        [DataMember]
        public string Email { get; set; }

        [DataMember]
        public string SmsNumber { get; set; }

        [XmlIgnore]
        public int? ReportsToId { get; set; }

        [DataMember(IsRequired = false)]
        public Employee ReportsTo { get; set; }

        [DataMember]
        public int DepartmentTreeId { get; set; }

        [DataMember]
        public bool IsActive { get; set; }
    }
}